package Demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-03-04
 * Time: 20:06
 */
public class Duck extends Animal implements IFly, Running {
    public Duck(String name, int age) {
        super(name, age);
    }

    @Override
    public void Flying() {
        System.out.println(this.name + "正在飞");
    }

    @Override
    public void Running() {
        System.out.println(this.name + "正在跑");
    }
}
